<div class="zs-ibox" id="FailureRepair">
	<div class="zs-btnbox">
		<div class="zs-location"> 
		    <a href="#" class="home" ng-click="BackTOTask();"><span>运营管理</span></a> <i class="arrow"></i> 
		    <a href="#"><span>设备故障及维修</span></a> 
	   	</div>
	   	<input type="button" value="返回" class="zs-btn" ng-click="BackTOTask()">
   	</div>
	
    <table class="zs-form-tab">
        <tbody>
        	<tr>
	           <td style="width: 3%">任务单号</td>
	           <td style="width: 45%"> 
	            	<input style="float:left;" type="text" class="zs-input" ng-model="queryObject.queryFailureObj.TASK_ID" style="width: 240px"/>
	          		<label style="float:left;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设备出厂编号：</label>
	          		<input style="float:left;" type="text" class="zs-input" ng-model="queryObject.queryFailureObj.DEVICE_NUM" style="width: 240px"/>
	           </td>
         	</tr>
	        <tr>
	        	<td style="width: 3%">设备状态</td>
		        <td style="width: 45%">
			        <ul  class="zs-data-sizer" id="DeviceStatusUL">
	               		<li ng-click="getDeviceStatus('all')" orgid="all" class="selected"><a href="#" >全部</a></li>
		                <li ng-click="getDeviceStatus(curRow.S_DOMAINCODE)" orgid="{{curRow.S_DOMAINCODE}}" value="curRow.S_DOMAINCODE" ng-repeat="curRow in httpData.DeviceStatusList.data">
		                	<a href="#" value="curRow.S_DOMAINCODE">{{curRow.S_DOMAINCAPTION}}</a>
		                </li>
			        </ul>
		        </td>
	        </tr>
	        <tr>
		        <td style="width: 3%">故障原因</td>
		        <td style="width: 45%">
		           	<ul  class="zs-data-sizer" id="FailureReasonUL">
		                <li ng-click="getFailureReason('all')" orgid="all" class="selected"><a href="#" >全部</a></li>
		                <li ng-click="getFailureReason(curRow.S_DOMAINCODE)" orgid="{{curRow.S_DOMAINCODE}}" value="curRow.S_DOMAINCODE" ng-repeat="curRow in httpData.FailureReasonList.data">
		                	<a href="#" value="curRow.S_DOMAINCODE">{{curRow.S_DOMAINCAPTION}}</a>
		                </li>
		        	</ul>
		        </td>
	        </tr>
	        <tr>
				<td style="width: 3%">处理结果</td>
				<td style="width: 45%">
				  	<ul  class="zs-data-sizer" id="RepairResultUL">
				  		<li ng-click="getRepairResult('all')" orgid="all" class="selected"><a href="#" >全部</a></li>
		                <li ng-click="getRepairResult(curRow.S_DOMAINCODE)" orgid="{{curRow.S_DOMAINCODE}}" value="curRow.S_DOMAINCODE" ng-repeat="curRow in httpData.RepairResultList.data">
		                	<a href="#" value="curRow.S_DOMAINCODE">{{curRow.S_DOMAINCAPTION}}</a>
		                </li>
					</ul>
				</td>
	        </tr>
        </tbody>
    </table>
	    
    <table  class="zs-form-tab" width="100%">
	    <tbody>
		    <tr>
		        <td style="width: 4%">故障发生时间</td>
		        <td style="width: 45%">
		        	<label>起始日期</label> &nbsp;
					<ag-Datebox class="zs-input" ng-model="queryObject.queryFailureObj.BEGIN_TIME_FROM" ></ag-Datebox>
					<label>结束日期</label> &nbsp;
					<ag-Datebox class="zs-input" ng-model="queryObject.queryFailureObj.BEGIN_TIME_TO" ></ag-Datebox>
					<input type="button" value="查询" class="zs-btn" ng-click="getFailureRepairList()">
				</td>
		    </tr>
	    </tbody>
	</table>
	
    <table class="zs-data-tab" width="100%">
        <thead>
            <tr>
            	<!-- <th class="head">任务单号</th>  -->
                <th class="head">监测点</th>
<!--                 <th class="head">设备状态</th> -->
                <th class="head">设备名称</th>
                <th class="head">设备型号</th>
                <th class="head">出厂编号</th>
                <th class="head">设备故障原因</th>
                <th class="head">故障发生时间</th>
                <th class="head">处理结果</th>
                <th class="head">处理人员</th>
                <th class="head">操作</th>
            </tr>
        </thead>
        
        <tbody>
            <tr ng-repeat="curRow in httpData.FailureRepairList.data" class="{{ isDoubleNum($index) ? 'even':'' }}">
			    <td class="center"><a><label ng-bind="curRow.STATION_NAME"></label></a></td>
<!-- 	            <td class="center"><a><label ng-bind="curRow.DEVICE_STATUS_NAME"></label></a></td> -->
			    <td class="center"><a><label ng-bind="curRow.EQUIPMENT_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.DEVICE_TYPENUM"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.DEVICE_NUMBER"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.FAILURE_REASON_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.BEGIN_TIME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.REPAIR_RESULT_NAME"></label></a></td>
			    <td class="center"><a><label ng-bind="curRow.USER_NAME"></label></a></td>
			    <td class="center">
			    	<a style="cursor:pointer" ng-click="queryFailureException(curRow)">异常</a>&nbsp;
			    	<a style="cursor:pointer" ng-click="queryPartMaterialList(curRow)">备件/耗材</a>&nbsp;
			    	<a style="cursor:pointer" ng-click="exportDoc(curRow)">导出报表</a>&nbsp;
			    </td>
            </tr>  
        </tbody>
    </table>
    
    <div class="zs-page"> 
		<a ng-click="waterDataCommon.firstPage(httpData.FailureRepairList,queryObj.queryFailureObj)">首页</a>
		<a class="pre" ng-click="waterDataCommon.prePage(httpData.FailureRepairList,queryObj.queryFailureObj)">上一页</a>
		<a class="next" ng-click="waterDataCommon.nextPage(httpData.FailureRepairList,queryObj.queryFailureObj)">下一页</a>
		<a ng-click="waterDataCommon.lastPage(httpData.FailureRepairList,queryObj.queryFailureObj)">尾页</a>
		<a ><label ng-bind="httpData.FailureRepairList.pageInfo.pageIndex"></label></a> / 
		<a ><label ng-bind="httpData.FailureRepairList.pageInfo.pageCount"></label></a>
     </div>
</div>

<div itfreer-Window id="PartMaterialList" title="部件更换记录" width='1200' height='400'>
	<#include "${viewDir}/common/operationManager/MaterialList.html">
</div>

<div itfreer-Window id="ConsumMaterialList" title="耗材更换记录" width='1200' height='400'>
	<#include "${viewDir}/common/operationManager/MaterialList.html">
</div>

<div itfreer-Window id="FailureException" title="异常记录" width='800' height='400'>
	<#include "${viewDir}/common/operationManager/FailureException.html">
</div>


